package com.doit.day03

import scala.io.Source

object _09_随机点名 {
  def main(args: Array[String]): Unit = {
    for(a <- 1 to 5){
      println(Else.dianMing())
    }

    Source.fromFile("")
      .getLines()
      .toArray
      .flatMap(_.split(","))
      .groupBy(word=>word)
      .map(tp=>(tp._1,tp._2.length))
    .foreach(println)






  }
}
